<%@page import="entityBean.Startup"%>
<%@page import="entityBean.Participation"%>
<%@page import="entityBean.Investisseur"%>
<%@page import="java.util.List"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Listes des investisseurs</title>
<link rel="stylesheet" type="text/css"
	href="/Web-JEE/css/style_table.css" />

</head>
<body>

	<%!List<Participation> parti;%>
	<%
		parti = (List<Participation>) request.getAttribute("pars");
	%>
	<jsp:include page="../jsp/GI_header.jsp" flush="true" />
	<table width="100%" cellpadding="10" cellspacing="10"
		bordercolor="#CC9900" bgcolor="#FFFFFF">
		<tr>
			<th scope="row"><table width="100%" border="1" cellpadding="10"
					cellspacing="10">
					<tr>
						<td colspan="2" class="txt-ttespace"><b><h1>Afficher
									participation</h1> </b>
						</td>

					</tr>
					<tr>
						<td>

							<div style="overflow: auto; height: 300px;">
								<table id="gradient-style" align="center">
									<thead style="border: 1px;">
										<tr>
											<th scope="col" align="center"><b>Id Participation</b></th>
											<th scope="col" align="center"><b>Id StartUp</b></th>
											<th scope="col" align="center"><b>Nom StartUp</b></th>
											<th scope="col" align="center"><b>Montant
													Participation</b></th>
										</tr>
									</thead>

									<tbody>

										<%
											if (parti != null) {

												for (Participation participation : parti) {
										%>
										<tr>
											<td><%=participation.getIdParticipation()%></td>
											<td><%=participation.getStartup().getIdStartUp()%></td>
											<td><%=participation.getStartup().getNom()%></td>
											<td><%=participation.getMontantParticipation()%></td>
										</tr>
										<%
											}
											}
										%>
									</tbody>
								</table>
							</div>
						</td>
					</tr>
				</table>
			</th>
		</tr>
	</table>
</body>
</html>